// import { getunredNotice } from "@/api/system/notice";
import Cookies from 'js-cookie'

const notice={
    state:{
        number:Cookies.get('noticeNum')||0,
    },
    mutations:{
        SET_NOTICE_NUMBER(state,number){
            state.number=number,
            Cookies.set('noticeNum',number)
        },
    },
    actions:{
        Unreadmassage({commit,state}){
            // getunredNotice().then(res=>{
            //     commit('SET_NOTICE_NUMBER',res.data.noticeNum)
            // })
        }
    }
}
export default notice